package com.cloud.pole.shop.service.goods.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloud.pole.common.util.jwt.IJWTInfo;
import com.cloud.pole.common.util.jwt.JwtTokenUtil;
import com.cloud.pole.shop.biz.goods.ShopGoodsModelAttrBiz;
import com.cloud.pole.shop.model.entity.goods.ShopGoodsModelAttr;
import com.cloud.pole.shop.service.goods.GoodsModelAttrService;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service
public class GoodsModelAttrServiceImpl implements GoodsModelAttrService {

	@Autowired
	ShopGoodsModelAttrBiz shopGoodsModelAttrBiz;


	@Override
	public List<ShopGoodsModelAttr> selectByList(Integer shopId) throws Exception {

		return shopGoodsModelAttrBiz.selectBy(shopId);
	}

	@Override
	public void addGoodsModelAttr(ShopGoodsModelAttr shopGoodsModelAttr) throws Exception {
		shopGoodsModelAttrBiz.addGoodsModel(shopGoodsModelAttr);
	}

	@Override
	public ShopGoodsModelAttr selectByName(String name,Integer shopId) throws Exception {
	
		return shopGoodsModelAttrBiz.selectByValName(name,shopId);
	}

	@Override
	public ShopGoodsModelAttr selectBy(String modelAttrName,Integer shopId) throws Exception {

		return shopGoodsModelAttrBiz.selectByVal(modelAttrName,shopId);
	}



	

}
